package com.kefu.chat.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

@Data
@TableName(value="chat_session_tag_rel")
@ApiModel(description="会话标签")
public class ChatSessionTagRel implements Serializable {
    /**
     * 主键
     */
    @TableId(value="id")
    @NotEmpty
    @ApiModelProperty(name = "id", value = "主键")
    private String id;

    /**
     * 会话id
     */
    @TableField(value = "session_id")
    @ApiModelProperty(name = "sessionId", value = "会话id")
    private String sessionId;

    /**
     * 标签id
     */
    @TableField(value = "tag_id")
    @ApiModelProperty(name = "tagId", value = "标签id")
    private String tagId;

    /**
     * 创建人
     */
    @TableField(value = "create_user")
    @ApiModelProperty(name = "createUser", value = "创建人")
    private String createUser;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(name = "createTime", value = "创建时间")
    private Long createTime;
    private static final long serialVersionUID = 1L;
}